package com.wsoft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author z001
 * @since 2024年11月18日 17:45:50
 */

@Setter
@Getter
@TableName("sys_log")
@Schema(name = "SysLogEntity", description = "")
public class SysLogEntity{

    @Schema(description = "接口地址")
    @TableField("url")
    private String url;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "ip地址")
    @TableField("ip")
    private String ip;

    @Schema(description = "方法路径")
    @TableField("method")
    private String method;

    @Schema(description = "日志类型(操作日志，业务日志)")
    @TableField("type")
    private String type;

    @Schema(description = "用户账号")
    @TableField("user_id")
    private String userId;

    @Schema(description = "接口描述")
    @TableField("remark")
    private String remark;

    @Schema(description = "出口参数json")
    @TableField("paramsJson")
    private String paramsJson;

    @Schema(description = "执行结果json")
    @TableField("resultJson")
    private String resultJson;

    @Schema(description = "接口执行时间")
    @TableField("runtime")
    private Long runtime;

    @Schema(description = "操作组织id")
    @TableField("org_id")
    private Long orgId;

    @Schema(description = "是否异常")
    @TableField("is_exception")
    private Integer isException;

    @Schema(description = "异常信息")
    @TableField("exception_info")
    private String exceptionInfo;

    @Schema(description = "操作时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

}
